/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package simplemetrosystem.view.menu;

import javax.swing.JMenuItem;
import simplemetrosystem.view.action.PasteActionListener;
import simplemetrosystem.view.MetroFrame;

/**
 * 黏贴按键
 * @author Eric Qian
 */
public class EditPasteItem extends JMenuItem{
    /**
     * 初始化黏贴按键
     * @param frame
     */
    public EditPasteItem(MetroFrame frame){
        super();
        this.frame = frame;
        name = frame.getName("Paste");
        this.setText(name);
        this.addActionListener(new PasteActionListener(frame));
    }
    
    private MetroFrame frame;
    private String name;
}
